import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[] array={1,2,3,4,5};
        int[] copy= Arrays.copyOf(array,array.length);
        int[] copy1=Arrays.copyOf(array,array.length*2);
        int[] copy2=Arrays.copyOfRange(array,0,2);
        int[] dest={0};
        System.arraycopy(array,0,dest,0,array.length);
        int[] copy3=array.clone();
    }
}
